package com.example.shiyan3.others;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Auther: Graycat
 * @Date: 2020/5/8 16:24
 * Create by lwj.
 */

@Component
public class Initialzation implements InitializingBean {

    @Autowired
    GetDate getDate;

    @Override
    public void afterPropertiesSet() throws Exception {
        getDate.getVirusDate();
//        System.out.println("项目启动时初始化数据");
    }
}
